package com.example.demothree.dao;

import com.example.demothree.bean.SaleItem;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface SaleItemDao extends JpaRepository<SaleItem,Long> {
    @Query("from SaleItem where name =?1")
    public SaleItem findByName(String name);
}
